
    <div class="edit-body">
        <div class="login-form-body">

            <form nz-form class="form" [formGroup]="resetPwsForm" >
                
                <nz-form-item >
                    <nz-form-label [nzSm]="6" [nzXs]="24" class="form-label" nzRequired nzFor="oldPwd" >原密码</nz-form-label>
                    <nz-form-control [nzSm]="14" [nzXs]="24" class="form-control"  >
                        <input nz-input type="password" formControlName="oldPwd" id="oldPwd" placeholder="请输入原登陆密码">
                        <nz-form-explain *ngIf="resetPwsForm.get('oldPwd')?.dirty && resetPwsForm.get('oldPwd')?.errors">
                        原密码格式错误
                        </nz-form-explain>
                    </nz-form-control>
                </nz-form-item>

                <nz-form-item>
                    <nz-form-label [nzSm]="6" [nzXs]="24" class="form-label" nzRequired nzFor="newPwd" >新密码</nz-form-label>
                    <nz-form-control [nzSm]="14" [nzXs]="24" class="form-control">
                        <input nz-input type="password" formControlName="newPwd" id="newPwd" placeholder="请输入新登陆密码">
                        <nz-form-explain *ngIf="resetPwsForm.get('newPwd')?.dirty && resetPwsForm.get('newPwd')?.errors">
                        新密码长度至少6位，字符种类必须包含数字、字符
                        </nz-form-explain>
                        <nz-form-extra>密码由6 -14位字符组成，并且必须包含数字与字母</nz-form-extra>
                    </nz-form-control>
                </nz-form-item>

                <nz-form-item>
                    <nz-form-label [nzSm]="6" [nzXs]="24" class="form-label" nzRequired nzFor="newConfirmPwd" >密码确认</nz-form-label>
                    <nz-form-control [nzSm]="14" [nzXs]="24" class="form-control">
                        <input nz-input type="password" formControlName="newConfirmPwd" id="newConfirmPwd" placeholder="请再次输入新登陆密码">
                        <nz-form-explain *ngIf="resetPwsForm.get('newConfirmPwd')?.dirty && resetPwsForm.get('newConfirmPwd')?.errors">
                        密码不一致
                        </nz-form-explain>
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item >
                    <nz-form-control [nzOffset]="6" [nzSpan]="14" class="form-control">
                        <button  nz-button [nzSize]="'large'" [nzType]="'primary'" (click)="submit(resetPwsForm.value)" [disabled]="resetPwsForm.invalid">保存</button>
                    </nz-form-control>
                </nz-form-item>
    
            </form>
        </div>
    </div>
    